<script setup lang="ts"></script>
<template>
  <div class="top">
    <div class="logo">新闻网站</div>
    <nav class="nav">
      <a href="#">国内</a>
      <a href="#">娱乐</a>
      <a href="#">体育</a>
      <a href="#">关于我们</a>
    </nav>
  </div>
</template>

<style scoped>
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c3e50;
  color: white;
  padding: 0.5rem 2rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: bold;
}
.nav a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}
.nav a:hover {
  color: #3498db;
}
</style>
